package com.servicecloud.consumer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

import com.servicecloud.myrule.MySelfRule;

@SpringBootApplication
@EnableEurekaClient
//启动负载均衡，configuration指定自定义的负载规则类
@RibbonClient(name = "MICROSERVICECLOUD", configuration = MySelfRule.class)
public class Application {
	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}
}
